#include<stdio.h>
int main()
{
	int x=0;
	while(x<100000)
	{
		scanf_s("%d ", &x);
		int y = x - 128;
		printf("%d ", y);
	}

	return 0;
}